import request from '@/utils/request';

// 查询网端组件详情列表
export function queryComponentDetailList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/component/queryComponentDetailList',
		method: 'post',
		params: data,
	});
}

// 导出网端组件详情列表
export function exportComponentDetail(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/component/queryComponentDetailListExport',
		method: 'post',
		data: query,
		timeout: 3000000,
		responseType: 'blob',
	});
}

// 导出网络详情列表
export function exportNetworkDetail(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/component/queryComponentDetailListExport',
		method: 'post',
		data: query,
		timeout: 3000000,
		responseType: 'blob',
	});
}

// 查询网元详情列表
export function queryNetworkMetaDataDetailList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/segment/queryNetworkElementBysegmentId',
		method: 'post',
		data: data,
	});
}


// 查询网元数据历史峰值
export function queryNetworkMetaDatalTop(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/segment/queryNetworkElementTop',
		method: 'post',
		data: data,
	});
}

// 查询网元数据趋势图
export function queryNetworkMetaDataTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/segment/overview/queryNetworkTrend',
		method: 'post',
		data: data,
	});
}


// 导出网元组件详情列表
export function exportNetworkMetaDataDetail(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/component/queryComponentDetailListExport',
		method: 'post',
		data: query,
		timeout: 3000000,
		responseType: 'blob',
	});
}
